Component({
  //接受父组件传递props数据
  properties: {
    goodsArr: Array
  },
  methods: {
    //点击商品图片进入到商品详情
    goDetail(event){
      const {goodsid} = event.currentTarget.dataset;
      wx.navigateTo({
        url: `/pages/goodsDetail/goodsDetail?goodsId=${goodsid}`,
      })
    }
  }
})